package com.czk.model.menmto;

/**
 * @Author:ChenZhangKun
 * @Date: 2020/5/14 20:10
 */
public class Originator {
    private String state;

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
    // 保存状态的方法
    // 保存menmto
    public Memento getMemento(){
        return new Memento(state);
    }
    public void getStateFromMemento(Memento memento){
        this.state=memento.getState();
    }
}
